﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace multiplication_table
{
    class Program
    {
        static void Main(string[] args)
        {
            int x;
            int y;
            for (x = 2; x < 9; x=x+3)
            {
                for (y = 2; y < 10; y++)
                {
                    if (x <= 5)
                    {
                        string table = string.Format("{0} * {1} = {2}\t{3} * {1} = {4}\t{5} * {1} = {6}",
         x, y, x * y, x + 1, (x + 1) * y, x + 2, (x + 2) * y);
                        Console.WriteLine("  " + table);
                    }
                    else
                    {
                        string table = string.Format("{0} * {1} = {2}{3}{4}* {1} = {5}",
      x, y, x * y, "    ", x + 1, (x + 1) * y, x + 2, (x + 2) * y);
                        Console.WriteLine("  " + table);
                    }
                }
                Console.WriteLine();
            }
            Console.ReadLine();

        }
    }
}
